package com.ggg.clothesshop.model;

import java.util.Date;

public class Product {
    private Integer productid;

    private String productname;

    private Double productprice;

    private String producttype;

    private String imageurl;

    private Date productdate;

    private Integer productnum;

    private Integer productsales;

    public Integer getProductid() {
        return productid;
    }

    public void setProductid(Integer productid) {
        this.productid = productid;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname == null ? null : productname.trim();
    }

    public Double getProductprice() {
        return productprice;
    }

    public void setProductprice(Double productprice) {
        this.productprice = productprice;
    }

    public String getProducttype() {
        return producttype;
    }

    public void setProducttype(String producttype) {
        this.producttype = producttype == null ? null : producttype.trim();
    }

    public String getImageurl() {
        return imageurl;
    }

    public void setImageurl(String imageurl) {
        this.imageurl = imageurl == null ? null : imageurl.trim();
    }

    public Date getProductdate() {
        return productdate;
    }

    public void setProductdate(Date productdate) {
        this.productdate = productdate;
    }

    public Integer getProductnum() {
        return productnum;
    }

    public void setProductnum(Integer productnum) {
        this.productnum = productnum;
    }

    public Integer getProductsales() {
        return productsales;
    }

    public void setProductsales(Integer productsales) {
        this.productsales = productsales;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productid=" + productid +
                ", productname='" + productname + '\'' +
                ", productprice=" + productprice +
                ", producttype='" + producttype + '\'' +
                ", imageurl='" + imageurl + '\'' +
                ", productdate=" + productdate +
                ", productnum=" + productnum +
                ", productsales=" + productsales +
                '}';
    }
}